from pydantic import BaseModel
from typing import Optional


class ContentCreate(BaseModel):
    type: str  # lisu_medicine / lacquer_tree / about_us
    title: str
    content: str


class ContentOut(BaseModel):
    id: int
    type: str
    title: str
    content: str
    created_at: Optional[str] = None
    updated_at: Optional[str] = None

    class Config:
        from_attributes = True








